import {getTag} from "../util/ColumnsUtil";
import React from "react";
/**
 * 消费项目表格列
 */
export const consumeItemColumnsBase: any = [
    {
        dataIndex: 'index',
        title: '序号' ,
        width: 60,
        align: "center" ,
        editable: false,
        render: (_:any, __:any, index: number) => {
            return <strong> {index + 1} </strong> ;
        }
    },
    {
        title: '选项',
        dataIndex: 'item',
        align: "center",
        editable: true,
    },
    {
        title: '说明',
        dataIndex: 'explain',
        align: "center",
        editable: true,
    },
    {
        title: '排序',
        dataIndex: 'order',
        align: "center",
        editable: true,
    },
    {
        title: '显示',
        dataIndex: 'show',
        align: "center",
        render: (value: boolean) => getTag(value,"是","否"),
        editable: true,
    },
    {
        title: '备注',
        dataIndex: 'remark',
        align: "center",
        editable: true,
    },
] ;